{"required":["username"],"anyOf":[{"required":["email"]},{"required":["phoneNumber"]}],"type":"object","properties":{"username":{"pattern":"\\S","type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"pattern":"^\\+?\\d+$","type":"string"},"credentials":{"minItems":1,"type":"array","items":{"required":["type","credential"],"type":"object","properties":{"type":{"pattern":"\\S","type":"string"},"credential":{"pattern":"\\S","type":"string"}}}},"personalId":{"description":"Personal id provided by the user\n","type":"string"},"countryCode":{"description":"Nation with its own government. ISO 3166, Alpha-2 code\n","type":"string","example":"US","maxLength":2},"active":{"type":"boolean","description":"Indicates whether the user is active. False by default.","default":false},"partyInformation":{"type":"object","properties":{"selfIndividualParty":{"required":["originParties"],"type":"object","properties":{"originParties":{"type":"array","description":"List of origin parties linked to this party","items":{"type":"object","required":["qualifiedId","domain"],"properties":{"qualifiedId":{"type":"string","format":"uri","description":"Fully qualified identifier for the origin party","example":"prefix:12345"},"domain":{"type":"string","description":"Domain of the origin party","enum":["PARTIES","ACCOUNTS"],"example":"PARTIES"}}}}}},"organisationParty":{"required":["originParties","legalName"],"type":"object","properties":{"originParties":{"type":"array","description":"List of origin parties linked to this party","items":"[Circular]"},"legalName":{"pattern":"\\S","type":"string"}}}}},"deviceId":{"description":"Device identifier associated with the user\n","type":"string"},"additionalUserDetails":{"description":"Additional user details to pass as key-value pairs, for example `\"title\": \"Dr.\"` and `\"department\": \"Finance\"`\n","type":"object","additionalProperties":true,"example":{"title":"Dr.","department":"Finance"}},"preferredLanguage":{"type":"string","description":"Preferred language of the user. Language code as locale code. E.g. en-US, en-GB, nl-NL.","example":"en-US"}}}